<div class="layui-container fly-marginTop">
  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief" lay-filter="user">
      <ul class="layui-tab-title">
        <li><a href="{:url('home/index/login')}">登入</a></li>
        <li class="layui-this">注册</li>
      </ul>
      <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
        <div class="layui-tab-item layui-show">
          <div class="layui-form layui-form-pane">
            <form method="post">
              <div class="layui-form-item">
                <label for="L_email" class="layui-form-label">邮箱</label>
                <div class="layui-input-inline">
                  <input type="text" id="L_email" name="email" required lay-verify="email" placeholder="请输入邮箱"
                    autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">昵称</label>
                <div class="layui-input-inline">
                  <input type="text" id="L_username" name="nickname" placeholder="请输入昵称" required lay-verify="required"
                    autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label for="L_pass" class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                  <input type="password" id="L_pass" name="password" placeholder="请输入密码" required lay-verify="required"
                    autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">确认密码</label>
                <div class="layui-input-inline">
                  <input type="password" id="L_repass" name="repass" placeholder="请输入确认密码" required
                    lay-verify="required" autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label for="L_vercode" class="layui-form-label">验证码</label>
                <div class="layui-input-inline">
                  <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="请输入验证码"
                    autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid" style="padding: 0 !important;display: block;">
                  <img src="{:url('home/index/captcha')}" alt="" class="imgCode">
                  <p onclick="changeCode()"
                    style="text-decoration: underline;color: blue;cursor: pointer;user-select: none;">
                    看不清，点击这里换一张</p>
                </div>
              </div>
              <div class="layui-form-item">
                <button class="layui-btn" type="submit">立即注册</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script>
  // 点击切换验证码图片
  function changeCode() {
    document.querySelector(".imgCode").setAttribute('src', `{:url('home/index/captcha')}`)
  }

  layui.use('layer', function () {
    var layer = layui.layer
    var $ = layui.jquery




  })
</script>